package elitech.vietnam.myfashion.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import elitech.vietnam.myfashion.MainActivity;
import elitech.vietnam.myfashion.gcm.GCMIntentService;
import elitech.vietnam.myfashion.view.SettingView;

public class SettingFragment extends Fragment {
	
	private MainActivity mContext;
	private SettingView mLayoutRoot;
	
//	public SettingFragment(MainActivity context) {
//		this.mContext = context;
//	}
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.mContext = (MainActivity) getActivity();
	}
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mLayoutRoot = new SettingView(mContext);
		return mLayoutRoot;
	}

	@Override
	public void onResume() {
		super.onResume();
		mLayoutRoot.onResume();
	}
}
